package com.antilia.infomaresme;

import org.apache.wicket.Request;
import org.apache.wicket.protocol.http.WebSession;

import com.antilia.infomaresme.data.dataobjects.Language;


/**
 * @author Ernesto Reinaldo Barreiro (reiern70@gmail.com)
 *
 */
public class InfomaresmeSession extends WebSession  {

	private static final long serialVersionUID = 1L;
	

	private Language language;
	
	
	/**
	 * @param request
	 */
	public InfomaresmeSession(Request request) {
		super(request);
	}

	
	/**
	 * Returns the session.
	 * @return
	 */
	public static InfomaresmeSession getSession() {
		return (InfomaresmeSession)get();
	}


	public Language getLanguage() {
		return language;
	}


	public void setLanguage(Language language) {
		setLocale(language.getLocale());
		this.language = language;
	}

}